public class Paixu {

	public static void main(String[] args) {
		int[] num = { 15, 10, 56, 15, 15100, 25, 35, 74 };
		int index = 0;
		for (int i = 0; i < num.length; i++) {
			for (int j = 0; j < num.length - 1 - i; j++) {
				if (num[j] > num[j + 1]) {
					int a = num[j + 1];
					num[j + 1] = num[j];
					num[j] = a;
				}
			}
		}
		for (int i = 0; i < num.length; i++) {
			System.out.println(num[i] + "\t");
		}
	}

}
